
// import axios from "axios";



// // 封装一个删除数据的接口
// export const deleteApi = () => {
//     return axios.delete('user/delete', {
//         data: {
//             index: 0
//         }
//     })
// }


//新增的数据接口
export const addApi = () => {
    return axios.post('user/delete',
        {
            name: '工厂一楼',
            id: 10,
            img: "http://dummyimage.com/200x100/dd1133/FFFCC.png&text=一楼",
            size: 9999
        },)
}
